import request from '@/router/axios';

export const getList = (page, size, params) => {
    return request({
        url: '/api/groupLeader/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}


export const getDetail = id => {
    return request({
        url: '/api/groupLeader/detail',
        method: "post",
        meta: {
            isSerialize: true,
        },
        data: {
            id
        }
    });
};


export const auditGroupLeader = (id,status,refuseReason) => {
    return request({
        url: '/api/groupLeader/auditGroupLeader',
        method: "post",
        meta: {
            isSerialize: true,
        },
        data: {
            id,
            status,
            refuseReason
        }
    });
};




